//
// Warlegue
//
// tank.h
///////////////////////////////////////////////////////////
#ifndef __TANK_H__
#define __TANK_H__

//
// includes
///////////////////////////////////////////////////////////
#include <SFML/Graphics.hpp>
#include <list>
#include "engine.h"
#include <iostream>


//
// class CTank
///////////////////////////////////////////////////////////
class CTank
{
public:
    CTank(sf::Texture*, sf::Texture*, sf::Vector2f, float);
    ~CTank();
    bool CollisionCirclePoint(float, float);
    void SetPosition(float, float);
    void SetPosition(sf::Vector2f);
    void SetMoveTarget(sf::Vector2f);
    void SetDirection(sf::Vector2f);
    void SetSpeed(float);
    void Update();
    void DrawSprites(CGameEngine*);

public:
    std::list<sf::Vector2f> m_waypoints;
    sf::Vector2f m_moveTarget;
    sf::Vector2f m_direction;

    sf::Sprite m_Sprite;
    sf::Sprite m_SpriteChoosen;

    sf::Clock m_clock;

    float m_speed;

    bool m_choosen;
};

#endif

